import { dynamicRouter } from './dynamicRouter.ts'
export const constantRoutes = [
  {
    path: '/login',
    name: 'LoginPage',
    component: () => import('@/views/LoginPage.vue'),
    meta: {
      title: '登录',
    },
  },
  {
    path: '/',
    name: 'layout',
    component: () => import('@/layout/index.vue'),
    redirect: '/testTs',
    children: [...dynamicRouter],
  },
  {
    path: '/home',
    name: 'home',
    component: () => import('@/views/BaseApi.vue'),
    meta: {
      title: '首页'
    },
  },
  {
    path: '/:pathMatch(.*)*',
    name: 'routeMatch',
    component: () => import('@/views/404.vue'),
    meta:{
    }
  },
]
